package com.sl.au.entity;


import javax.persistence.*;

@Entity
@Table(name = "sl_crm_customer")
public class Customer extends Root {
	//编号
	@Column(name = "sCustomerCode", nullable = false)
	private String customerCode;
	
	/**	创建者 */
	@ManyToOne
	private User user;
	
	//////////////发货信息/////////////
	//发货单位名称
	@Column(name="cUnitName")
	private String cUnitName;
	//发货地址
	@Column(name="cPhoneNumber")
	private String cPhoneNumber;
	//收货人
	@Column(name="cSHName")
	private String cSHName;
	//收货人电话
	@Column(name="cSHPhoneName")
	private String cSHPhoneName;
	//邮编
	@Column(name="cSHYB")
	private String cSHYB;
	//订货电话
	@Column(name="cDHPhone")
	private String cDHPhone;
	//订货代表
	@Column(name="cDHDB")
	private String cDHDB;

	public String getcDHPhone() {
		return cDHPhone;
	}

	public void setcDHPhone(String cDHPhone) {
		this.cDHPhone = cDHPhone;
	}

	public String getcDHDB() {
		return cDHDB;
	}

	public void setcDHDB(String cDHDB) {
		this.cDHDB = cDHDB;
	}

	public String getcUnitName() {
		return cUnitName;
	}

	public void setcUnitName(String cUnitName) {
		this.cUnitName = cUnitName;
	}

	public String getcPhoneNumber() {
		return cPhoneNumber;
	}

	public void setcPhoneNumber(String cPhoneNumber) {
		this.cPhoneNumber = cPhoneNumber;
	}

	public String getcSHName() {
		return cSHName;
	}

	public void setcSHName(String cSHName) {
		this.cSHName = cSHName;
	}

	public String getcSHPhoneName() {
		return cSHPhoneName;
	}

	public void setcSHPhoneName(String cSHPhoneName) {
		this.cSHPhoneName = cSHPhoneName;
	}

	public String getcSHYB() {
		return cSHYB;
	}

	public void setcSHYB(String cSHYB) {
		this.cSHYB = cSHYB;
	}
	//审核状态
	@Column(name="sauditState")
	private String auditState;
	public String getAuditState() {
		return auditState;
	}

	public void setAuditState(String auditState) {
		this.auditState = auditState;
	}
	//名称
	@Column(name = "sCustomerName", nullable = false)
	private String customerName;
	//公司地址
	@Column(name = "sAddress")
	private String address;
	//所属行业
	@Column(name = "sBusiness")
	private String business;
	//所属片区
	@OneToOne
	@JoinColumn(unique = false)
    private SaleArea saleArea;
	//地区
	@Column(name = "sRegion")	
	private String region;
	//别名
	@Column(name = "sAnotherName")
	private String anotherName;
	//上级单位
	@Column(name = "sSuperior")
	private String superior;
	// 
	@Column(name = "sBaseMemo")
	private String baseMemo;
//////////////////////////////
    //资产性质
	@Column(name = "sAsset")
	private String asset;
	//买方属性
	@Column(name = "sBuyer")
	private String buyer;
	
	//续存年限
	@Column(name = "sContinuelife")
	private String continuelife;
	
	//信用支付
	@Column(name = "sCredit")
	private String credit;
	
	//合作期限
    @Column(name = "sPeriod")
	private String period;
	
	//领导赋值
	@Column(name = "nScore")
	private int score;
	
	//信用等级
	@Column(name = "sCreditLevel")
	private String creditLevel;
	
	//欠款总额
	@Column(name = "nOwnedSum")
	private double ownedSum;
	
	/** 邮寄单位 */
	@Column(name="sPostUnit")
	private java.lang.String postUnit;
	/** 邮寄代表 */
	@Column(name="sPostDelegate")
	private java.lang.String postDelegate;
	/** 邮寄号码 */
	@Column(name="sPostPhone")
	private java.lang.String postPhone;
	/** 邮寄地址 */
	@Column(name="sPostAddress")
	private java.lang.String postAddress;
	/** 邮寄邮编 */
	@Column(name="nPostZip")
	private String postZip;
	public java.lang.String getPostUnit() {
		return postUnit;
	}

	public void setPostUnit(java.lang.String postUnit) {
		this.postUnit = postUnit;
	}

	public java.lang.String getPostDelegate() {
		return postDelegate;
	}

	public void setPostDelegate(java.lang.String postDelegate) {
		this.postDelegate = postDelegate;
	}

	public java.lang.String getPostPhone() {
		return postPhone;
	}

	public void setPostPhone(java.lang.String postPhone) {
		this.postPhone = postPhone;
	}

	public java.lang.String getPostAddress() {
		return postAddress;
	}

	public void setPostAddress(java.lang.String postAddress) {
		this.postAddress = postAddress;
	}

	public String getPostZip() {
		return postZip;
	}

	public void setPostZip(String postZip) {
		this.postZip = postZip;
	}

	//////////////////////////////
	//纳税人识别号
	@Column(name = "sIdentification")
	private String identification;
	//联系电话
	@Column(name = "sInvoicePhone")
	private String invoicePhone;
	//邮编
	@Column(name = "sZipCode")
	private String  zipCode;
    //开票地址
	@Column(name = "sInvoiceAddress")
	private String invoiceAddress;
	//开票银行
	@Column(name = "sInvoiceBank")
    private String invoiceBank;
	//银行账号
	@Column(name = "sBankAccount")
	private String bankAccount;
	//税号
	@Column(name = "staxNumber")
	private String taxNumber;
	//开票备注
	@Column(name = "sInvoiceMemo")
	private String invoiceMemo;

//	@OneToMany(cascade=CascadeType.REMOVE,mappedBy="customer")
//	private Set<KeyContact> keyContacts;

	public String getCustomerCode() {
		return customerCode;
	}

	public void setCustomerCode(String customerCode) {
		this.customerCode = customerCode;
	}

	public String getCustomerName() {
		return customerName;
	}

	public void setCustomerName(String customerName) {
		this.customerName = customerName;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public String getBusiness() {
		return business;
	}

	public void setBusiness(String business) {
		this.business = business;
	}

	public SaleArea getSaleArea() {
		return saleArea;
	}

	public void setSaleArea(SaleArea saleArea) {
		this.saleArea = saleArea;
	}

	public String getAnotherName() {
		return anotherName;
	}

	public void setAnotherName(String anotherName) {
		this.anotherName = anotherName;
	}

	public String getSuperior() {
		return superior;
	}

	public void setSuperior(String superior) {
		this.superior = superior;
	}

	public String getBaseMemo() {
		return baseMemo;
	}

	public void setBaseMemo(String baseMemo) {
		this.baseMemo = baseMemo;
	}

	public String getAsset() {
		return asset;
	}

	public void setAsset(String asset) {
		this.asset = asset;
	}

	public String getBuyer() {
		return buyer;
	}

	public void setBuyer(String buyer) {
		this.buyer = buyer;
	}

	public String getContinuelife() {
		return continuelife;
	}

	public void setContinuelife(String continuelife) {
		this.continuelife = continuelife;
	}

	public String getCredit() {
		return credit;
	}

	public void setCredit(String credit) {
		this.credit = credit;
	}

	public int getScore() {
		return score;
	}

	public void setScore(int score) {
		this.score = score;
	}

	public String getCreditLevel() {
		return creditLevel;
	}

	public void setCreditLevel(String creditLevel) {
		this.creditLevel = creditLevel;
	}

	public double getOwnedSum() {
		return ownedSum;
	}

	public void setOwnedSum(double ownedSum) {
		this.ownedSum = ownedSum;
	}

	public String getIdentification() {
		return identification;
	}

	public void setIdentification(String identification) {
		this.identification = identification;
	}

	public String getInvoicePhone() {
		return invoicePhone;
	}

	public void setInvoicePhone(String invoicePhone) {
		this.invoicePhone = invoicePhone;
	}

	public String getZipCode() {
		return zipCode;
	}

	public void setZipCode(String zipCode) {
		this.zipCode = zipCode;
	}

	public String getInvoiceAddress() {
		return invoiceAddress;
	}

	public void setInvoiceAddress(String invoiceAddress) {
		this.invoiceAddress = invoiceAddress;
	}

	public String getInvoiceBank() {
		return invoiceBank;
	}

	public void setInvoiceBank(String invoiceBank) {
		this.invoiceBank = invoiceBank;
	}

	public String getBankAccount() {
		return bankAccount;
	}

	public void setBankAccount(String bankAccount) {
		this.bankAccount = bankAccount;
	}

	public String getTaxNumber() {
		return taxNumber;
	}

	public void setTaxNumber(String taxNumber) {
		this.taxNumber = taxNumber;
	}

	public String getInvoiceMemo() {
		return invoiceMemo;
	}

	public void setInvoiceMemo(String invoiceMemo) {
		this.invoiceMemo = invoiceMemo;
	}

	public String getRegion() {
		return region;
	}

	public void setRegion(String region) {
		this.region = region;
	}

	public String getPeriod() {
		return period;
	}

	public void setPeriod(String period) {
		this.period = period;
	}

	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}
	
	
	
   

}
